package com.zyt.service.impl;

import com.zyt.entity.Book;
import com.zyt.mapper.BookMapper;
import com.zyt.service.BookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class BookServiceImpl implements BookService {
    @Autowired
    private BookMapper bookMapper;
    @Override
    public List<Book> selectByRecommend() {
        return bookMapper.selectByRecommend();
    }

    @Override
    public List<Book> selectByHot() {
        return bookMapper.selectByHot();
    }

    @Override
    public List<Book> selectByNew() {
        return bookMapper.selectByNew();
    }

    @Override
    public List<Book> selectByright() {
        return bookMapper.selectByright();
    }

    @Override
    public Book selectByBook(Integer id) {
        return bookMapper.selectByBook(id);
    }

    @Override
    public List<Book> selectByLevelTwo(Integer id) {
        return bookMapper.selectByLevelTwo(id);
    }

    @Override
    public List<Book> selectByLevelOne(Integer id) {
        return bookMapper.selectByLevelOne(id);
    }

    @Override
    public Book selectById(Integer bookId) {
        return bookMapper.selectById(bookId);
    }
}
